﻿using System;
using System.Collections;
using System.Web;

namespace Fuse8.DomainFramework.Common
{
    /// <summary>
    /// 
    /// </summary>
    public class DummyHttpContext : HttpContextBase
    {
        #region Singleton

        [ThreadStatic]
        private static DummyHttpContext _instance;

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static DummyHttpContext GetInstance()
        {
            return _instance ?? (_instance = new DummyHttpContext());
        }

        /// <summary>
        /// 
        /// </summary>
        protected DummyHttpContext()
        { }

        #endregion

        private readonly Hashtable _dictionary = new Hashtable();

        /// <summary>
        /// 
        /// </summary>
        public override IDictionary Items
        {
            get
            {
                return _dictionary;
            }
        }
    }
}
